package com.qf.service.impl;

import com.qf.entity.YuYueOrder;
import com.qf.entity.YuYueOrderDTO;
import com.qf.mapper.YuYueOrderMapper;
import com.qf.service.YuYueOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.HashMap;
import java.util.List;

/**
 * --- 冲 ---
 *
 * @author Biggen
 * @date 2025/4/27
 * @desc
 */
@Slf4j
@Service
public class YuYueOrderServiceImpl implements YuYueOrderService {

    @Autowired
    private YuYueOrderMapper mapper;


    @Override
    public List<YuYueOrder> queryAllOrderPage(YuYueOrderDTO yuYueOrderDTO) {
        return mapper.queryAllOrderPage(yuYueOrderDTO);
    }

    @Override
    public boolean YuYueOrderDelete(int id) {
        return mapper.YuYueOrderDelete(id);
    }

    @Override
    public List<YuYueOrder> getOrderNum() {
        return mapper.getOrderNum();
    }

    @Override
    public boolean YuYueOrderDeleteAll(List<Integer> ids) {
        return mapper.YuYueOrderDeleteAll(ids);
    }

    @Override
    public boolean YuYueOrderUpdate(YuYueOrder yuYueOrder) {
        return mapper.YuYueOrderUpdate(yuYueOrder);
    }

    @Override
    public boolean YuYueOrderAdd(YuYueOrder yuYueOrder) {
        return mapper.YuYueOrderAdd(yuYueOrder);
    }

    @Override
    public void insertBatch(List<YuYueOrder> cachedDataList) {
        log.info("insertBatch,数据如下：{}", cachedDataList);
        mapper.insertBatch(cachedDataList);
    }

    @Override
    public List<HashMap<String, Object>> getStatusRate() {
        return mapper.getStatusRate();
    }
}
